package com.sigerap.insumo.action;


import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.sigerap.insumo.model.Insumo;
import com.sigerap.proveedor.model.Proveedor;
import com.sigerap.proveedor.service.ProveedorService;


/**
 * 
 * @author Spirit-20121
 *
 */

public class GenerarInsumoAction extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private List<Proveedor> proveedores;
	private ProveedorService service;
	
	
	public GenerarInsumoAction(){
		service = new ProveedorService();
	}
	
	public String execute()throws Exception{
		String retorno="exito";		
		proveedores=service.listarProveedores();
		
		return retorno;
	}

	public List<Proveedor> getProveedores() {
		return proveedores;
	}

	public void setProveedores(List<Proveedor> proveedores) {
		this.proveedores = proveedores;
	}

	public ProveedorService getService() {
		return service;
	}

	public void setService(ProveedorService service) {
		this.service = service;
	}

	
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
	
	

}
